<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/animate.css">
    <style>
        h1{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
        }
    </style>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <input type="button" value="显示" @click="isShow=!isShow">
        <transition
            enter-active-class="animated bounceInDown"
        >
            <h1 v-show="isShow">Happy new year</h1>
        </transition>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            isShow:false
        }
    })
</script>
</html>